import Vue from 'vue'
import VueRouter from 'vue-router'
import IndexView from "@/views/IndexView.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: '/index',
        name: 'index',
        component: IndexView,
        children:[]

    },
    {
        path: '/',
        name: 'login',

        component: () => import( '../views/LoginView.vue')
    }

]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
